package com.zd.dao;

import com.zd.entity.Comments;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public  interface CommentsDao extends CrudRepository<Comments,Long> {
    /**
     *
     * @param cnid
     * @return
     */
    List<Comments> getAllByCnid(Long cnid);

    void deleteByCnid(Long nid);
}
